import React, { Component } from 'react';
import { Tabs } from 'antd-mobile'
import { NavBar} from 'antd-mobile'
import { withRouter } from 'react-router-dom';

class dingdan extends Component {
    back(){
        console.log('返回');
        this.props.history.go('-1')
    }
    render() {
        return (
            <div>
                <NavBar back='返回' onBack={()=>{this.back()}}>
                    订单页
                </NavBar>
                <Tabs>
                    <Tabs.Tab title='全部订单' key='1'>
                        全部订单
                    </Tabs.Tab>
                    <Tabs.Tab title='代付款' key='2'>
                        代付款
                    </Tabs.Tab>
                    <Tabs.Tab title='待收货' key='3'>
                        待收货
                    </Tabs.Tab>
                    <Tabs.Tab title='待评价' key='4'>
                        待评价
                    </Tabs.Tab>
                </Tabs>
            </div>
        );
    }
}

export default withRouter(dingdan);